/**
* Created by IntelliJ IDEA.
* User: Laxmi
* Date: Apr 29, 2009
* Time: 10:54:00 PM
* To change this template use File | Settings | File Templates.
*/
//import feedsplugin.FeedBuilder

class RssController {

    def feed = {
     render(feedType: "rss", feedVersion: "2.0") {
   title = "New Event List feeds"
    link = "http://localhost:8080/eventManager/rss/feed"
     description = "Subscribe to the Event Feeds"
      Event.list().each() {event ->         entry(event.name) {
        publishedDate = new Date()
        link = ""
        content(type: 'text/html', value:"<p>${event.description}</p><p>Start: ${event.startDate}</p><p>End: ${event.endDate}</p>")
   }

}    

}
}
}
